<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>基于CW32的电压电流表: D:/09电压电流表训练营/CW32F030C8T6_VAmeter_release/APP/Lcd_Driver.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">基于CW32的电压电流表<span id="projectnumber">&#160;V1.0.0</span>
   </div>
   <div id="projectbrief">一款物联网多功能电压电流表</div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('_lcd___driver_8c.html',''); initResizable(true); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle"><div class="title">Lcd_Driver.c 文件参考</div></div>
</div><!--header-->
<div class="contents">

<p>LCD屏幕驱动源文件  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &quot;board.h&quot;</code><br />
<code>#include &quot;<a class="el" href="_lcd___driver_8h_source.html">Lcd_Driver.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a6758ae1e84bda7de6a13005947e33d7f" id="r_a6758ae1e84bda7de6a13005947e33d7f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6758ae1e84bda7de6a13005947e33d7f">LCD_GPIO_Init</a> (void)</td></tr>
<tr class="memdesc:a6758ae1e84bda7de6a13005947e33d7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化LCD屏幕的GPIO配置  <br /></td></tr>
<tr class="separator:a6758ae1e84bda7de6a13005947e33d7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f0c765e810c62a187185fa87c6a9cfd" id="r_a0f0c765e810c62a187185fa87c6a9cfd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0f0c765e810c62a187185fa87c6a9cfd">SPI_WriteData</a> (uint8_t Data)</td></tr>
<tr class="memdesc:a0f0c765e810c62a187185fa87c6a9cfd"><td class="mdescLeft">&#160;</td><td class="mdescRight">向SPI总线传输一个8位数数据  <br /></td></tr>
<tr class="separator:a0f0c765e810c62a187185fa87c6a9cfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acea692c65e452864867485aab5f5d24e" id="r_acea692c65e452864867485aab5f5d24e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acea692c65e452864867485aab5f5d24e">Lcd_WriteIndex</a> (uint8_t Index)</td></tr>
<tr class="memdesc:acea692c65e452864867485aab5f5d24e"><td class="mdescLeft">&#160;</td><td class="mdescRight">向液晶屏写一个8位指令  <br /></td></tr>
<tr class="separator:acea692c65e452864867485aab5f5d24e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1d85e822acdc2331b72eda6e771c874" id="r_af1d85e822acdc2331b72eda6e771c874"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af1d85e822acdc2331b72eda6e771c874">Lcd_WriteData</a> (uint8_t Data)</td></tr>
<tr class="memdesc:af1d85e822acdc2331b72eda6e771c874"><td class="mdescLeft">&#160;</td><td class="mdescRight">向液晶屏写一个8位数据  <br /></td></tr>
<tr class="separator:af1d85e822acdc2331b72eda6e771c874"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a440d57ac2de7835959002ba3c4c87f8f" id="r_a440d57ac2de7835959002ba3c4c87f8f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a440d57ac2de7835959002ba3c4c87f8f">LCD_WriteData_16Bit</a> (uint16_t Data)</td></tr>
<tr class="memdesc:a440d57ac2de7835959002ba3c4c87f8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">向SPI总线传输一个16位数据  <br /></td></tr>
<tr class="separator:a440d57ac2de7835959002ba3c4c87f8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18162686646fbfe562be2596b342952a" id="r_a18162686646fbfe562be2596b342952a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a18162686646fbfe562be2596b342952a">Lcd_WriteReg</a> (uint8_t Index, uint8_t Data)</td></tr>
<tr class="memdesc:a18162686646fbfe562be2596b342952a"><td class="mdescLeft">&#160;</td><td class="mdescRight">向液晶屏寄存器写数据  <br /></td></tr>
<tr class="separator:a18162686646fbfe562be2596b342952a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefeb059dd7c3bee9e9a82886b85a7051" id="r_aefeb059dd7c3bee9e9a82886b85a7051"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aefeb059dd7c3bee9e9a82886b85a7051">Lcd_Reset</a> (void)</td></tr>
<tr class="memdesc:aefeb059dd7c3bee9e9a82886b85a7051"><td class="mdescLeft">&#160;</td><td class="mdescRight">重置LCD屏幕  <br /></td></tr>
<tr class="separator:aefeb059dd7c3bee9e9a82886b85a7051"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afed6e1aa47240d8e045853902a7efe7d" id="r_afed6e1aa47240d8e045853902a7efe7d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afed6e1aa47240d8e045853902a7efe7d">Lcd_Init</a> (void)</td></tr>
<tr class="memdesc:afed6e1aa47240d8e045853902a7efe7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">LCD屏幕初始化  <br /></td></tr>
<tr class="separator:afed6e1aa47240d8e045853902a7efe7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34e7c9859cbd55760570b5443405f22d" id="r_a34e7c9859cbd55760570b5443405f22d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a34e7c9859cbd55760570b5443405f22d">Lcd_SetRegion</a> (uint16_t x_start, uint16_t y_start, uint16_t x_end, uint16_t y_end)</td></tr>
<tr class="memdesc:a34e7c9859cbd55760570b5443405f22d"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置lcd显示区域，在此区域写点数据自动换行  <br /></td></tr>
<tr class="separator:a34e7c9859cbd55760570b5443405f22d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a057c5a8251788ffde52c9186d75461bc" id="r_a057c5a8251788ffde52c9186d75461bc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a057c5a8251788ffde52c9186d75461bc">Lcd_SetXY</a> (uint16_t x, uint16_t y)</td></tr>
<tr class="memdesc:a057c5a8251788ffde52c9186d75461bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置lcd显示起始点  <br /></td></tr>
<tr class="separator:a057c5a8251788ffde52c9186d75461bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24aba0149e152e0ce00249d360768402" id="r_a24aba0149e152e0ce00249d360768402"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a24aba0149e152e0ce00249d360768402">Gui_DrawPoint</a> (uint16_t x, uint16_t y, uint16_t Data)</td></tr>
<tr class="memdesc:a24aba0149e152e0ce00249d360768402"><td class="mdescLeft">&#160;</td><td class="mdescRight">画一个点  <br /></td></tr>
<tr class="separator:a24aba0149e152e0ce00249d360768402"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfe1a29e583fc828cd05477d265d85be" id="r_abfe1a29e583fc828cd05477d265d85be"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abfe1a29e583fc828cd05477d265d85be">Lcd_ReadPoint</a> (uint16_t x, uint16_t y)</td></tr>
<tr class="memdesc:abfe1a29e583fc828cd05477d265d85be"><td class="mdescLeft">&#160;</td><td class="mdescRight">读TFT某一点的颜色  <br /></td></tr>
<tr class="separator:abfe1a29e583fc828cd05477d265d85be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a111599a9f1825495165ff771019c8fec" id="r_a111599a9f1825495165ff771019c8fec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a111599a9f1825495165ff771019c8fec">Lcd_Clear</a> (uint16_t Color)</td></tr>
<tr class="memdesc:a111599a9f1825495165ff771019c8fec"><td class="mdescLeft">&#160;</td><td class="mdescRight">全屏清屏函数  <br /></td></tr>
<tr class="separator:a111599a9f1825495165ff771019c8fec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add2aa33b5ad1e203cb9b976935e3c1e5" id="r_add2aa33b5ad1e203cb9b976935e3c1e5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#add2aa33b5ad1e203cb9b976935e3c1e5">Lcd_Part_Clear</a> (uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint16_t Color)</td></tr>
<tr class="memdesc:add2aa33b5ad1e203cb9b976935e3c1e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">部分区域清屏函数  <br /></td></tr>
<tr class="separator:add2aa33b5ad1e203cb9b976935e3c1e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab79b8fa9ceafe767ea358f9874279140" id="r_ab79b8fa9ceafe767ea358f9874279140"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab79b8fa9ceafe767ea358f9874279140">Set_Lcd_Brightness</a> (uint8_t light)</td></tr>
<tr class="memdesc:ab79b8fa9ceafe767ea358f9874279140"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置LCD屏幕的亮度  <br /></td></tr>
<tr class="separator:ab79b8fa9ceafe767ea358f9874279140"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:a8fb1173277237709877f9448dd731a09" id="r_a8fb1173277237709877f9448dd731a09"><td class="memItemLeft" align="right" valign="top"><a id="a8fb1173277237709877f9448dd731a09" name="a8fb1173277237709877f9448dd731a09"></a>
uint8_t&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_brightness</b></td></tr>
<tr class="memdesc:a8fb1173277237709877f9448dd731a09"><td class="mdescLeft">&#160;</td><td class="mdescRight">LCD屏幕亮度 <br /></td></tr>
<tr class="separator:a8fb1173277237709877f9448dd731a09"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>LCD屏幕驱动源文件 </p>
<dl class="section author"><dt>作者</dt><dd>VRxiaojie </dd></dl>
<dl class="section date"><dt>日期</dt><dd>2024-08-11 </dd></dl>
<dl class="section version"><dt>版本</dt><dd>v1.0 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>哔哩哔哩 : VR小杰 <a href="https://space.bilibili.com/11526854">https://space.bilibili.com/11526854</a> <br  />
 嘉立创开源广场: vrxiaojie <a href="https://oshwhub.com/vrxiaojie/">https://oshwhub.com/vrxiaojie/</a> <br  />
 </dd></dl>
</div><h2 class="groupheader">函数说明</h2>
<a id="a24aba0149e152e0ce00249d360768402" name="a24aba0149e152e0ce00249d360768402"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24aba0149e152e0ce00249d360768402">&#9670;&#160;</a></span>Gui_DrawPoint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gui_DrawPoint </td>
          <td>(</td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>x</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>y</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>Data</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>画一个点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>该点的横坐标 </td></tr>
    <tr><td class="paramname">y</td><td>该点的坐标 </td></tr>
    <tr><td class="paramname">Data</td><td>颜色值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无 <br  />
 </dd></dl>

</div>
</div>
<a id="a111599a9f1825495165ff771019c8fec" name="a111599a9f1825495165ff771019c8fec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a111599a9f1825495165ff771019c8fec">&#9670;&#160;</a></span>Lcd_Clear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Lcd_Clear </td>
          <td>(</td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>Color</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>全屏清屏函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">color</td><td>填充的颜色 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无 </dd></dl>

</div>
</div>
<a id="a6758ae1e84bda7de6a13005947e33d7f" name="a6758ae1e84bda7de6a13005947e33d7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6758ae1e84bda7de6a13005947e33d7f">&#9670;&#160;</a></span>LCD_GPIO_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LCD_GPIO_Init </td>
          <td>(</td>
          <td class="paramtype">void</td>          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>初始化LCD屏幕的GPIO配置 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">无</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无 <br  />
 </dd></dl>

</div>
</div>
<a id="afed6e1aa47240d8e045853902a7efe7d" name="afed6e1aa47240d8e045853902a7efe7d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afed6e1aa47240d8e045853902a7efe7d">&#9670;&#160;</a></span>Lcd_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Lcd_Init </td>
          <td>(</td>
          <td class="paramtype">void</td>          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>LCD屏幕初始化 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">无</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无 <br  />
 </dd></dl>

</div>
</div>
<a id="add2aa33b5ad1e203cb9b976935e3c1e5" name="add2aa33b5ad1e203cb9b976935e3c1e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add2aa33b5ad1e203cb9b976935e3c1e5">&#9670;&#160;</a></span>Lcd_Part_Clear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Lcd_Part_Clear </td>
          <td>(</td>
          <td class="paramtype">uint8_t</td>          <td class="paramname"><span class="paramname"><em>x1</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t</td>          <td class="paramname"><span class="paramname"><em>y1</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t</td>          <td class="paramname"><span class="paramname"><em>x2</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t</td>          <td class="paramname"><span class="paramname"><em>y2</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>Color</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>部分区域清屏函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Color</td><td>填充的颜色 </td></tr>
    <tr><td class="paramname">x1</td><td>显示区域起点的x坐标 </td></tr>
    <tr><td class="paramname">y1</td><td>显示区域起点的y坐标 </td></tr>
    <tr><td class="paramname">x2</td><td>显示区域终点的x坐标 </td></tr>
    <tr><td class="paramname">y2</td><td>显示区域终点的y坐标 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无 </dd></dl>

</div>
</div>
<a id="abfe1a29e583fc828cd05477d265d85be" name="abfe1a29e583fc828cd05477d265d85be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abfe1a29e583fc828cd05477d265d85be">&#9670;&#160;</a></span>Lcd_ReadPoint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Lcd_ReadPoint </td>
          <td>(</td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>x</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>y</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>读TFT某一点的颜色 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>该点的横坐标 </td></tr>
    <tr><td class="paramname">y</td><td>该点的坐标 </td></tr>
    <tr><td class="paramname">Data</td><td>颜色值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>color 该点颜色值 </dd></dl>

</div>
</div>
<a id="aefeb059dd7c3bee9e9a82886b85a7051" name="aefeb059dd7c3bee9e9a82886b85a7051"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefeb059dd7c3bee9e9a82886b85a7051">&#9670;&#160;</a></span>Lcd_Reset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Lcd_Reset </td>
          <td>(</td>
          <td class="paramtype">void</td>          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>重置LCD屏幕 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">无</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无 <br  />
 </dd></dl>

</div>
</div>
<a id="a34e7c9859cbd55760570b5443405f22d" name="a34e7c9859cbd55760570b5443405f22d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34e7c9859cbd55760570b5443405f22d">&#9670;&#160;</a></span>Lcd_SetRegion()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Lcd_SetRegion </td>
          <td>(</td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>x_start</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>y_start</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>x_end</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>y_end</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置lcd显示区域，在此区域写点数据自动换行 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x_start</td><td>显示区域起点的x坐标 </td></tr>
    <tr><td class="paramname">y_start</td><td>显示区域起点的y坐标 </td></tr>
    <tr><td class="paramname">x_end</td><td>显示区域终点的x坐标 </td></tr>
    <tr><td class="paramname">y_end</td><td>显示区域终点的y坐标 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无 <br  />
 </dd></dl>

</div>
</div>
<a id="a057c5a8251788ffde52c9186d75461bc" name="a057c5a8251788ffde52c9186d75461bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a057c5a8251788ffde52c9186d75461bc">&#9670;&#160;</a></span>Lcd_SetXY()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Lcd_SetXY </td>
          <td>(</td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>x</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>y</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置lcd显示起始点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>该点的横坐标 </td></tr>
    <tr><td class="paramname">y</td><td>该点的坐标 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无 <br  />
 </dd></dl>

</div>
</div>
<a id="af1d85e822acdc2331b72eda6e771c874" name="af1d85e822acdc2331b72eda6e771c874"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1d85e822acdc2331b72eda6e771c874">&#9670;&#160;</a></span>Lcd_WriteData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Lcd_WriteData </td>
          <td>(</td>
          <td class="paramtype">uint8_t</td>          <td class="paramname"><span class="paramname"><em>Data</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向液晶屏写一个8位数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Data</td><td>数据 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无 <br  />
 </dd></dl>

</div>
</div>
<a id="a440d57ac2de7835959002ba3c4c87f8f" name="a440d57ac2de7835959002ba3c4c87f8f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a440d57ac2de7835959002ba3c4c87f8f">&#9670;&#160;</a></span>LCD_WriteData_16Bit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LCD_WriteData_16Bit </td>
          <td>(</td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>Data</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向SPI总线传输一个16位数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Data</td><td>数据 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无 <br  />
 </dd></dl>

</div>
</div>
<a id="acea692c65e452864867485aab5f5d24e" name="acea692c65e452864867485aab5f5d24e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acea692c65e452864867485aab5f5d24e">&#9670;&#160;</a></span>Lcd_WriteIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Lcd_WriteIndex </td>
          <td>(</td>
          <td class="paramtype">uint8_t</td>          <td class="paramname"><span class="paramname"><em>Index</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向液晶屏写一个8位指令 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Index</td><td>地址 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无 <br  />
 </dd></dl>

</div>
</div>
<a id="a18162686646fbfe562be2596b342952a" name="a18162686646fbfe562be2596b342952a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18162686646fbfe562be2596b342952a">&#9670;&#160;</a></span>Lcd_WriteReg()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Lcd_WriteReg </td>
          <td>(</td>
          <td class="paramtype">uint8_t</td>          <td class="paramname"><span class="paramname"><em>Index</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t</td>          <td class="paramname"><span class="paramname"><em>Data</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向液晶屏寄存器写数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Index</td><td>寄存器地址 </td></tr>
    <tr><td class="paramname">Data</td><td>数据 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无 <br  />
 </dd></dl>

</div>
</div>
<a id="ab79b8fa9ceafe767ea358f9874279140" name="ab79b8fa9ceafe767ea358f9874279140"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab79b8fa9ceafe767ea358f9874279140">&#9670;&#160;</a></span>Set_Lcd_Brightness()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Set_Lcd_Brightness </td>
          <td>(</td>
          <td class="paramtype">uint8_t</td>          <td class="paramname"><span class="paramname"><em>light</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置LCD屏幕的亮度 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">light</td><td>亮度值 0-100 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>使用PWM调光 </dd></dl>

</div>
</div>
<a id="a0f0c765e810c62a187185fa87c6a9cfd" name="a0f0c765e810c62a187185fa87c6a9cfd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f0c765e810c62a187185fa87c6a9cfd">&#9670;&#160;</a></span>SPI_WriteData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SPI_WriteData </td>
          <td>(</td>
          <td class="paramtype">uint8_t</td>          <td class="paramname"><span class="paramname"><em>Data</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向SPI总线传输一个8位数数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Data</td><td>数据 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无 <br  />
 </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="_lcd___driver_8c.html">Lcd_Driver.c</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0 </li>
  </ul>
</div>
</body>
</html>
